package com.dayaokeji.server_api.domain;

import java.io.Serializable;
import java.util.Random;

/**
 * Created by Gorden on 2017/10/14.
 */

public class Course implements Serializable{
    private static final long serialVersionUID = 8000490244531743251L;

    private String actEndTime;
    private String actStartTime;
    private Integer courseSignId;
    private int courseDetailId;
    private int courseStatus;
    private String courseStatusName;
    private int courseType;
    private int endTh;
    private int id;
    private String mck;
    private String name;
    private int pictureId;
    private int roomId;
    private int teacherId;
    private String roomName;
    private String signTypeName;
    private int startTh;
    private String teacherName;
    private String teacherWorkNo;
    private int weekDay;
    private String weekDayName;
    private int signStatus;
    private int headId;
    private int signWay;
    private int colorFlag = new Random().nextInt(9);
    private String signStartTime;
    private String signEndTime;
    private Integer signType;
    private Integer signOutStatus;

    public int getSignStatus() {
        return signStatus;
    }

    public void setSignStatus(int signStatus) {
        this.signStatus = signStatus;
    }

    public String getActEndTime() {
        return actEndTime;
    }

    public void setActEndTime(String actEndTime) {
        this.actEndTime = actEndTime;
    }

    public String getActStartTime() {
        return actStartTime;
    }

    public void setActStartTime(String actStartTime) {
        this.actStartTime = actStartTime;
    }

    public Integer getCourseSignId() {
        return courseSignId;
    }

    public void setCourseSignId(Integer courseSignId) {
        this.courseSignId = courseSignId;
    }

    public int getCourseDetailId() {
        return courseDetailId;
    }

    public void setCourseDetailId(int courseDetailId) {
        this.courseDetailId = courseDetailId;
    }

    public int getCourseStatus() {
        return courseStatus;
    }

    public void setCourseStatus(int courseStatus) {
        this.courseStatus = courseStatus;
    }

    public String getCourseStatusName() {
        return courseStatusName;
    }

    public void setCourseStatusName(String courseStatusName) {
        this.courseStatusName = courseStatusName;
    }

    public int getCourseType() {
        return courseType;
    }

    public void setCourseType(int courseType) {
        this.courseType = courseType;
    }

    public int getEndTh() {
        return endTh;
    }

    public void setEndTh(int endTh) {
        this.endTh = endTh;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getMck() {
        return mck;
    }

    public void setMck(String mck) {
        this.mck = mck;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPictureId() {
        return pictureId;
    }

    public void setPictureId(int pictureId) {
        this.pictureId = pictureId;
    }

    public int getRoomId() {
        return roomId;
    }

    public void setRoomId(int roomId) {
        this.roomId = roomId;
    }

    public int getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(int teacherId) {
        this.teacherId = teacherId;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public String getSignTypeName() {
        return signTypeName;
    }

    public void setSignTypeName(String signTypeName) {
        this.signTypeName = signTypeName;
    }

    public int getStartTh() {
        return startTh;
    }

    public void setStartTh(int startTh) {
        this.startTh = startTh;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public String getTeacherWorkNo() {
        return teacherWorkNo;
    }

    public void setTeacherWorkNo(String teacherWorkNo) {
        this.teacherWorkNo = teacherWorkNo;
    }

    public int getWeekDay() {
        return weekDay;
    }

    public void setWeekDay(int weekDay) {
        this.weekDay = weekDay;
    }

    public String getWeekDayName() {
        return weekDayName;
    }

    public void setWeekDayName(String weekDayName) {
        this.weekDayName = weekDayName;
    }

    public int getColorFlag() {
        return colorFlag;
    }

    public void setColorFlag(int colorFlag) {
        this.colorFlag = colorFlag;
    }

    public int getHeadId() {
        return headId;
    }

    public void setHeadId(int headId) {
        this.headId = headId;
    }

    @Override
    public int hashCode() {
        return id * name.hashCode();
    }

    public int getSignWay() {
        return signWay;
    }

    public void setSignWay(int signWay) {
        this.signWay = signWay;
    }

    public String getSignStartTime() {
        return signStartTime;
    }

    public void setSignStartTime(String signStartTime) {
        this.signStartTime = signStartTime;
    }

    public String getSignEndTime() {
        return signEndTime;
    }

    public void setSignEndTime(String signEndTime) {
        this.signEndTime = signEndTime;
    }

    public Integer getSignOutStatus() {
        return signOutStatus;
    }

    public void setSignOutStatus(Integer signOutStatus) {
        this.signOutStatus = signOutStatus;
    }

    public Integer getSignType() {
        return signType;
    }

    public void setSignType(Integer signType) {
        this.signType = signType;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof Course) {
            if (((Course) obj).getCourseDetailId() == this.getCourseDetailId()) {
                return true;
            }
        }
        return super.equals(obj);
    }
}
